package kevin.framework.basic.dao.impl;
import java.util.Date;

import org.springframework.stereotype.Repository;
import kevin.framework.basic.dao.impl.BaseDao;
import kevin.framework.basic.dao.IUserDao;
import kevin.framework.basic.domain.User;

/**
*Generate by Kevin's CodeBuilder
**/
@Repository(value="userDao")
public class UserDao extends BaseDao<User, String>  implements IUserDao {

	@Override
	public void insertSuperAdmin(String name,String zhName,String pwd) throws Exception {
		User user = new User();
		user.setCreateTime(new Date());
		user.setCreateUserId("0");
		user.setId("0");
		user.setUserAccount(name);
		user.setUserName(zhName);
		user.setUserPwd(pwd);
		user.setUserStatus(1);
		user.setOrgId("0");
		this.insert(user);
	}

	
	
}
